package cn.source.system.asp;


import cn.source.common.core.domain.model.H5LoginUser;

public class UserH5ContextHandler {

    /**
     * 当前线程上下文线程变量,子线程不能获取该线程变量数据
     */
    private static ThreadLocal<H5LoginUser> threadLocal = new ThreadLocal<H5LoginUser>();

    public static void set(H5LoginUser userInfo) {
        threadLocal.set(userInfo);
    }

    public static H5LoginUser get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
